package entity;

import view.TankClientView.Screen;

public class Tank extends Client {

	private static final long serialVersionUID = 1556904371871136827L;

	public Tank() {
		super();
		this.setObjType("tank");
	}
	
	//̹高度
	public static final int THeight = 40;
	//̹宽度
	public static final int TWidth = 40;
	//枪长度
	public static final int GunLength = 30;

	//当前位置
	private Position currentPosition = Position.getRandomPosition(Screen.WIDTH,Screen.HEIGHT);
	//当前速速
	private MoveSpeed speed = new MoveSpeed(2, 1);
	//当前方向
	private Direction direction = Direction.RIGHT;

	private Position GunPosition;

	//存活标记
	private boolean isAlive;
	//是否移动
	private boolean isMove;

	private boolean isTankRotate;      
	private boolean isGunRotate;          

	public Position getCurrentPosition() {
		return currentPosition;
	}
	public void setCurrentPosition(Position currentPosition) {
		this.currentPosition = currentPosition;
	}
	public MoveSpeed getSpeed() {
		return speed;
	}
	public void setSpeed(MoveSpeed speed) {
		this.speed = speed;
	}
	public boolean isAlive() {
		return isAlive;
	}
	public void setAlive(boolean isAlive) {
		this.isAlive = isAlive;
	}
	public boolean isMove() {
		return isMove;
	}
	public void setMove(boolean isMove) {
		this.isMove = isMove;
	}
	public boolean isTankRotate() {
		return isTankRotate;
	}
	public void setTankRotate(boolean isTankRotate) {
		this.isTankRotate = isTankRotate;
	}
	public boolean isGunRotate() {
		return isGunRotate;
	}
	public void setGunRotate(boolean isGunRotate) {
		this.isGunRotate = isGunRotate;
	}
	public Direction getDirection() {
		return direction;
	}
	public void setDirection(Direction direction) {
		this.direction = direction;
	}

	public Position getGunPosition() {
		return GunPosition;
	}
	public void setGunPosition(Position gunPosition) {
		GunPosition = gunPosition;
	}

}
